﻿using System;
using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class AuditTrail
    {
        private Data.AuditTrail Audit;

        public AuditTrail()
        {
            Audit = new Data.AuditTrail();
        }

        public List<AuditTrailInfo> GetList(string TableName, DateTime StartDate, DateTime EndDate)
        {
            return Audit.GetList(TableName, StartDate, EndDate);
        }

        public List<AuditTrailInfo> GetTableList()
        {
            return Audit.GetTableList();
        }

        public int Save(AuditTrailInfo Info)
        {
            return Audit.Save(Info);
        }

        public int GetRowNumber(string TableName, DateTime StartDate, DateTime EndDate)
        {
            return Audit.GetRowNumber(TableName, StartDate, EndDate);
        }

        public List<AuditTrailInfo> GetList(string TableName, DateTime StartDate, DateTime EndDate, int currPage, int dataPerPage)
        {
            return Audit.GetList(TableName, StartDate, EndDate, currPage, dataPerPage);
        }
    }
}